package com.yc.pre.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yc.pre.entity.bean.LabModelAuctionExtract;
import com.yc.pre.entity.bean.PreDataPool;
import com.yc.pre.mapper.primary.PreDataPoolMapper;
import com.yc.pre.service.PreDataPoolService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName PreDataPoolServiceImpl
 * @Description 数据池服务实现层
 * @Date 2021/02/22 10:46:29
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Service
public class PreDataPoolServiceImpl implements PreDataPoolService {

    @Resource
    private PreDataPoolMapper preDataPoolMapper;

    /**
     * 查找数据池所有数据
     * @return
     */
    @Override
    public List<PreDataPool> findAll() {
        return preDataPoolMapper.selectAllDatas();
    }

    /**
     * 根据ID更新数据池数据
     * @param changeDatas
     */
    @Override
    public Integer updatePoolData(List<PreDataPool> changeDatas) {
        Integer number = preDataPoolMapper.updateByIds(changeDatas);
        return number;
    }
}
